const mongoose = require('mongoose')

const filmAndCinemaSchema = new mongoose.Schema({
    films:{
        type: mongoose.Schema.Types.ObjectId,
        ref: "filmModel"
    },
    cinemas:{
        type: mongoose.Schema.Types.ObjectId,
        ref: "cinemaModel"
    },
    schedule:Array
})

module.exports = mongoose.model('filmAndCinemaModel',filmAndCinemaSchema,'filmAndCinemas');